package com.neusoft.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.demo.dao.GoodsMapper;
import com.neusoft.demo.po.Goods;



@Service
public class GoodsService {

	@Autowired
	private GoodsMapper goodsMapper;
	

	public List<Goods> queryGoodsByLike(Goods goods){
		return goodsMapper.queryGoodsByLike(goods);
	}
	

	public Goods queryGoodsById(int id) {
		return goodsMapper.queryGoodsById(id);
	}
	

	public List<Goods> queryGoods(){
		return goodsMapper.queryGoods();
	}
	

	public void updateGoods(Goods goods) {
		goodsMapper.updateGoods(goods);
	}
	

	public void deleteGoods(int id) {
		goodsMapper.deleteGoods(id);
	}
	

	public void addGoods(Goods goods) {
		goodsMapper.addGoods(goods);
	}
	
}
